<template>
  <div>
    <!-- 头部 -->
    <van-nav-bar title="会员中心" left-arrow @click-left="$router.go(-1)" />

    <!-- 用户信息卡片 -->
    <div class="userCard">
      <img src="/userImg.jpg" alt class="userImg" />
      <div class="rightText">
        <span class="name">lighthhh</span>
        <p>用户名: ligthhh</p>
        <span class="power">京享值24821</span>
      </div>
    </div>

    <!-- 购物状态 -->
    <van-grid>
      <van-grid-item icon="card" text="待付款" />
      <van-grid-item icon="cart" text="待收货" />
      <van-grid-item icon="gold-coin" text="退换/售后" />
      <van-grid-item icon="column" text="全部订单" url="/#/order/0" />
    </van-grid>

    <!-- 底部足迹和商品收藏 -->
    <div class="collect">
      <div class="left">
        <span>5</span>
        <i>商品收藏</i>
      </div>
      <div class="right">
        <span>0</span>
        <i>我的足迹</i>
      </div>
    </div>
    <van-empty description />
     <common-footer></common-footer>
  </div>
</template>

<script>
export default {
  data () {
    return {}
  },
  mounted () {},
  methods: {}
}
</script>

<style lang="less" scoped>
.userCard {
  display: flex;
  align-items: center;
  background-image: linear-gradient(to right, #eb3e3d, #f55d5d);
  border-radius: 22px;
  padding: 20px;
  margin: 10px;
  height: 92px;
  .userImg {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    margin: 0 20px;
  }
  .rightText {
    color: #fff;
  }
}

.van-grid {
  margin: 20px 0;
}
.van-grid-item {
  color: #d46f10;
}
.collect {
  display: flex;
  justify-content: space-around;
  .left,
  .right {
    text-align: center;
    font-weight: 700;
    i {
      margin-top: 5px;
      font-style: normal;
      display: block;
      font-weight: 400;
    }
  }
}
</style>
